package com.atguigu.guli.service.sms.controller;

import com.atguigu.guli.common.base.result.R;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sms/sample")
// @PropertySource(value = "classpath:")
public class SampleController {

    @Value("${aliyun.sms.singName}")
    private String singName;

    @GetMapping("test-sing-name")
    public R testSingName(){
        return R.ok().data("singName",singName);
    }
}
